home *** CD-ROM | disk | FTP | other *** search
/ PC Graphics Unleashed / PC Graphics Unleashed.iso / ch11 / test.pi < prev    next >
Text File  |  1994-06-15  |  3KB  |  120 lines

  1. //TEST.PI
  2.  
  3. include "colors.inc"
  4. include "texture.inc"
  5.  
  6. viewpoint {
  7.  from      <3, 3, -10>
  8.  at        <0.0, 0.0, 0.0>
  9.  up        <0.0, 1.0, 0.0>
  10.  angle           45
  11.  resolution      640,480
  12.  aspect          1.33
  13.  }
  14.  
  15. // LIGHT_SOURCE
  16. light <0,  50,  0>
  17. light <50, 0, -50>
  18. light <-50, 0, -50>
  19.  
  20.     
  21. //background lightgrey
  22.  
  23. define LampTop
  24. object {
  25.     lathe 2, <0, 1, 0>, 10,
  26.      <0.210856, 0.620042, 0>,
  27.      <0.189979, 0.536534, 0>,
  28.      <0.185804, 0.478079, 0>,
  29.      <0.189979, 0.407098, 0>,
  30.      <0.210856, 0.348643, 0>,
  31.      <0.240084, 0.290188, 0>,
  32.      <0.273486, 0.231733, 0>,
  33.      <0.331942, 0.173278, 0>,
  34.      <0.411273, 0.102296, 0>,
  35.      <0.503132, 0.039666, 0>
  36. }
  37.  
  38. define LampBottom
  39. object {
  40.     lathe 2, <0, 1, 0>, 19,
  41.      <0.156576, 0.210856, 0>,
  42.      <0.156576, -0.0521921, 0>,
  43.      <0.202505, -0.0647182, 0>,
  44.      <0.244259, -0.0981211, 0>,
  45.      <0.25261, -0.156576, 0>,
  46.      <0.227557, -0.202505, 0>,
  47.      <0.148225, -0.219207, 0>,
  48.      <0.160752, -0.344468, 0>,
  49.      <0.169102, -0.407098, 0>,
  50.      <0.185804, -0.473904, 0>,
  51.      <0.215031, -0.544885, 0>,
  52.      <0.256785, -0.624217, 0>,
  53.      <0.331942, -0.691023, 0>,
  54.      <0.402923, -0.736952, 0>,
  55.      <0.402923, -0.782881, 0>,
  56.      <0.344468, -0.82881, 0>,
  57.      <0.273486, -0.849687, 0>,
  58.      <0.265136, -0.899791, 0>,
  59.      <0.356994, -0.929019, 0>
  60. }
  61.  
  62. define FlowerVase
  63. object {
  64.     lathe 2, <0, 1, 0>, 20,
  65.      <0.327766, 0.736952, 0>,
  66.      <0.210856, 0.628392, 0>,
  67.      <0.139875, 0.553236, 0>,
  68.      <0.118998, 0.482255, 0>,
  69.      <0.102296, 0.390397, 0>,
  70.      <0.0939457, 0.281837, 0>,
  71.      <0.102296, 0.189979, 0>,
  72.      <0.152401, 0.114823, 0>,
  73.      <0.244259, 0.0146138, 0>,
  74.      <0.402923, -0.131524, 0>,
  75.      <0.465553, -0.244259, 0>,
  76.      <0.453027, -0.382046, 0>,
  77.      <0.377871, -0.478079, 0>,
  78.      <0.244259, -0.544885, 0>,
  79.      <0.14405, -0.574113, 0>,
  80.      <0.135699, -0.716075, 0>,
  81.      <0.290188, -0.741127, 0>,
  82.      <0.386221, -0.770355, 0>,
  83.      <0.427975, -0.82881, 0>,
  84.      <0.394572, -0.924843, 0>
  85. }
  86.  
  87. object {
  88.       LampTop
  89.       scale <2,2,2>
  90.       translate <0.5,2,0>
  91.       reflective_tan
  92. }
  93.  
  94. object {
  95.      LampBottom
  96.      scale <2,2,2>
  97.      translate <0.5, 2*0.95, 0>
  98.      reflective_gold
  99. }
  100.  
  101. object {
  102.      FlowerVase
  103.      scale <1.3,1.3,1.3>
  104.      translate <-1.5, 1.3*0.95, -2>
  105.      sapphire_agate
  106. }
  107.  
  108.  
  109. object {
  110.     sphere <2.5,0.25,-2>, .25
  111.     shiny_red
  112. }
  113.  
  114. object {
  115.     disc <0,0,0>, <0,1,0>,5
  116.     texture { 
  117.       checker reflective_grey, matte_black
  118.     }
  119. }
  120.